﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CartSummary.ascx.cs" Inherits="smartphone.UserControls.CartSummary" %>

<table class="CartSummary" border="0" cellpadding="0" cellspacing="1">
    <tr>
        <td>
            <span class="headerTemplate">
                <asp:Label ID="cartSummaryLabel" runat="server" Text=""></asp:Label>
            </span>

            <asp:DataList ID="DlCartSummary" runat="server" CssClass="CartSummaryContent">
                <ItemTemplate>
                    <%#Eval("tenSanPham") %>
                  <span class="bold">X<%#Eval("soLuong") %></span> 
                </ItemTemplate>
            </asp:DataList>

            <span class="totalPrice">
                <label>Tổng tiền: </label><asp:Label ID="totalAmountLabel" CssClass="bold" runat="server" Text=""></asp:Label>
            </span>

            <asp:HyperLink ID="viewCartLink" runat="server" NavigateUrl="~/ShoppingCartPage.aspx"
                CssClass="CartLink" Text="(Xem)" >Chi tiết</asp:HyperLink>
            <asp:HyperLink ID="checkOutLink" runat="server" NavigateUrl="~/CheckOut.aspx" CssClass="CartLink">Thanh toán</asp:HyperLink>
        </td>
    </tr>
</table>